package com.manbu.live.api.controller;

import com.manbu.live.msg.enums.MsgSendResultEnum;
import com.manbu.live.msg.interfaces.ISmsRpc;
import com.manbu.live.user.inerface.IUserRpc;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hanWang
 * @Title:
 * @Package
 * @Description:
 * @date 2024/2/19:20 AM
 */
@RestController
@RequestMapping("/userLogin")
public class UserLoginController {

    @DubboReference
    private ISmsRpc iSmsRpc;
    @DubboReference
    private IUserRpc  userRpc;

    @PostMapping("/sendLoginCode")
    public MsgSendResultEnum bathQueryUserInfo(@RequestParam("phone") String phone){

        return iSmsRpc.sendMessage(phone);
    }



}
